<?php

use yii\db\Schema;
use yii\db\Migration;

class m150717_072622_creative_add extends Migration
{
    public function up()
    {
    	$this->addColumn('{{%creative}}', 'tanx_advertiser_id', "varchar(64) DEFAULT NULL COMMENT 'Tanx 广告主id' after size");
    	$this->addColumn('{{%creative}}', 'adomain_full', "text COMMENT '跳转的全域名' after tanx_advertiser_id");
    }

    public function down()
    {
    	$this->dropColumn('{{%creative}}', 'tanx_advertiser_id');
    	$this->dropColumn('{{%creative}}', 'adomain_full');
        return true;
    }
}
